home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 299 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: nntp.teleport.com!sschaem
  2. From: sschaem@teleport.com (Stephan Schaem)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: PPC compilers
  5. Date: 5 Jan 1996 20:55:18 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Message-ID: <4ck37m$g07@maureen.teleport.com>
  8. References: <john.hendrikx.40ka@grafix.xs4all.nl> <4b77tq$htp@serpens.rhein.de> <MQAQx*XOe@yaps.rhein.de> <4bqhnf$6g5@sunsystem5.informatik.tu-muenchen.de> <jasonb.820051107@cs.uwa.edu.au> <4c9i2l$h3i@sunsystem5.informatik.tu-muenchen.de> <4cf0ep$233@ra.i
  9. NNTP-Posting-Host: linda.teleport.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Organization: Teleport - Portland's Public Access (503) 220-1016
  13. Distribution: world
  14.  
  15. Jim Cooper (jamie@jamie.interpath.net) wrote:
  16. : In article <4cgo3i$b8n@sunsystem5.informatik.tu-muenchen.de> fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer) writes:
  17. : > Lars Duening (duening@ibr.cs.tu-bs.de) wrote:
  18. : > : That doesn't count because in C you don't need to know if this statement
  19. : > : compiles to a .w, to a .l or even to a .q .
  20. : > 
  21. : > but when the .l meets a real-world color-register, you will notice
  22. : > your claim is not always true.
  23.  
  24. : Why do you insist on making this seem harder than it needs to be?
  25.  
  26. : The answer is quite simple and straightforward:
  27.  
  28. : In ASM, *you*, the programmer, must remember to add the '.w' by hand every
  29. : time you reference the "real-world color-register," otherwise, possible
  30. : fireworks.
  31.  
  32. : In C, the structure is defined *once*, in a system header file, in fact, and
  33. : the programmer never needs to know if the compiler will generate '.w', '.l',
  34. : or anything else.
  35.  
  36.  Just a reminder... in C or ASM you need to know what a color register
  37.  is if you want to operate on it, unless you call high level function
  38.  to do the job for you (Even them you need to look in the .h or doc
  39.  what type is needed as parameter).
  40.  Otherwise you need to know that color0 is a word holding 12bit
  41.  of valid data grouped in 4bit nibles, same as you need to know that
  42.  a long is 32bit or a char is 8bit... etc... 
  43.  
  44.  Not knowing on what data you operate can only create bad code.
  45.  
  46.  Stephan
  47.  
  48.